export default function() {
	const systemBarHeight = ref(0)
	const menuBotton = ref({
		height: 0
	})

	// 获取手机顶部状态栏高度
	const getSysteminfo = () => {
		uni.getSystemInfo({
			success: res => {
				systemBarHeight.value = res.statusBarHeight;
			}
		});

		uni.getSystemInfo({
			success: res => {
				res.statusBarHeight && (systemBarHeight.value = res.statusBarHeight * 2)
				// #ifdef MP-WEIXIN
				let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
				menuBotton.value = menuButtonInfo
				console.log(111111, menuButtonInfo)
				// #endif
			}
		});
	}


	getSysteminfo()
	
	return {
		systemBarHeight,
		menuBotton
	}
}